package com.broada.apm.entity;

import com.broada.apm.model.Dimension.Error;

import java.util.List;

public class L7Module {

	/**
	 * 模块 id
	 */
	private String id;
	/**
	 * 继承模块id
	 */
	private String baseId;
	/**
	 * 语言
	 */
	private String lang;
	/**
	 * L7协议
	 */
	private int l7_proto;

	/**
	 * 模块名称
	 */
	private String name;

	private String cname;

	private String analyzer_version;

	/**
	 * 模块版本
	 */
	private String version;
	/**
	 *    兼容版本 从前到后 3段，不足3段的最后一位忽略
	 *		对于x的，全部不检查版本
	 *		对于数字，检查
   *		2.x.x 匹配 2.0.2 2.1.0 2.2.0
   *    2.2.x 匹配  2.2.1 2.2.2
	 */
	private String compatible;

	/**
	 * 类型
	 */
	private String type;

	/**
	 * 状态 0:启用；1：禁用
	 */
	private int status;

	/**
	 * 文件名称
	 */
	private String fileName;
	
	private String java;

	/**
	 * 用途
	 */
	private String memo;

	private String category;

	private String proto;

	private String logo;

	private List<Error> errors;

	public L7Module() {
	}

	public L7Module(String id, String baseId, int l7_proto, String name, String cname, String version,String compatible, String type, String lang,
			String proto, String category, String analyzer_version, String logo, String fileName, String memo,String java, int status) {
		this.id = id;
		this.baseId = baseId;
		this.analyzer_version = analyzer_version;
		this.cname = cname;
		this.logo = logo;
		this.lang = lang;
		this.l7_proto = l7_proto;
		this.name = name;
		this.version = version;
		this.type = type;
		this.fileName = fileName;
		this.memo = memo;
		this.proto = proto;
		this.category = category;
		this.status=status;
		this.compatible=compatible;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBaseId() {
		return baseId;
	}

	public void setBaseId(String baseId) {
		this.baseId = baseId;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getJava() {
		return java;
	}

	public void setJava(String java) {
		this.java = java;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public int getL7_proto() {
		return l7_proto;
	}

	public void setL7_proto(int l7_proto) {
		this.l7_proto = l7_proto;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getProto() {
		return proto;
	}

	public void setProto(String proto) {
		this.proto = proto;
	}

	public String getLang() {
		return lang;
	}

	public void setLang(String lang) {
		this.lang = lang;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getAnalyzer_version() {
		return analyzer_version;
	}

	public void setAnalyzer_version(String analyzer_version) {
		this.analyzer_version = analyzer_version;
	}

	public String getLogo() {
		return logo;
	}

	public List<Error> getErrors() {
		return errors;
	}

	public void setErrors(List<Error> errors) {
		this.errors = errors;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getCompatible() {
		return compatible;
	}

	public void setCompatible(String compatible) {
		this.compatible = compatible;
	}
	
	
}
